Skip to content

feat(discord): clarify approval decision notifications - #92

Merged
Ivory2024 merged 2 commits into
mainfrom
codex/discord-approval-context-20261005
Oct 5, 2026
Merged

Ivory2024 merged 2 commits into
mainfrom
codex/discord-approval-context-20261005

Conversation

@Ivory2024

Copy link
Copy Markdown
Owner

Intent

Discord approval notifications state why contact is needed, the decision, choices, recommendation, and task ID; recommendation must be one offered choice; preserve retries and inbound reply routing

What Changed

  • Discord decision notifications now state why contact is needed, the required decision, task ID, offered choices, and a recommended choice validated against those options.
  • Updated captain-hold, pull-request, and OpenCode permission notification callers with explicit recommendations; existing retry and reply-routing flows remain in place.

Risk Assessment

✅ Low: The change adds decision context and validates recommendations against offered choices; caller arguments, retry behavior, and reply binding remain consistent.

Testing

Ran the focused Discord decision-push checks. The real CLI rejected an unoffered recommendation without creating pending state. Message delivery, retries, and inbound replies were exercised only with mocked fetch responses; no screenshot applies to this non-UI change. Live Discord validation needs a disposable bot token and channel.

  • Live validation: ⚠️ inconclusive - 1 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Receive a decision notification with contact reason, decision, choices, recommendation, and task ID ⏸️ untested no Ran the focused test, which uses mocked Discord fetch responses. Live delivery cannot be driven because the API host is fixed and no disposable Discord bot token or channel is available. Provide a dis…
Reject a recommendation outside the offered choices without creating pending state ✅ pass live bash tests/fm-discord-decision-push.test.sh
Retry a failed notification and route a reply to its keyed inbox context ⏸️ untested no Ran the focused test, which uses mocked Discord fetch responses. Live retry and reply routing require a Discord bot token, channel, and authority to post and reply there. Provide a disposable bot toke…
  • Outcome: ⚠️ 2 warnings across 2 runs (3m19s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 2 warnings
  • ⚠️ Live Discord behavior remains unverified. The focused test runs the notification scripts with a mocked fetch response; the API host is fixed, and no disposable Discord bot credential and channel are available here. Provide access to a disposable channel and bot token to drive these scenarios live.
  • ⚠️ live validation verdict: inconclusive (0 of 3 scenarios were driven live against the product); untested: Receive a decision notification showing contact reason, decision, choices, recommendation, and task ID; recommendation is an offered choice, Submit a recommendation outside the offered choices; notification is rejected without creating pending state, Retry a failed notification and reply to a pushed decision; retry succeeds and inbound reply reaches the keyed inbox context
  • Live validation: ⚠️ inconclusive - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Receive a decision notification showing contact reason, decision, choices, recommendation, and task ID; recommendation is an offered choice ⏸️ untested no Ran bash tests/fm-discord-decision-push.test.sh; it exercises the real scripts with mocked Discord API responses, which does not count as live. The API host is fixed and no disposable Discord bot cr…
Submit a recommendation outside the offered choices; notification is rejected without creating pending state ⏸️ untested no Ran the focused test against the real script with a mocked API; this does not count as live. Live interaction requires a disposable Discord bot credential and channel, which are unavailable. Provide t…
Retry a failed notification and reply to a pushed decision; retry succeeds and inbound reply reaches the keyed inbox context ⏸️ untested no Ran the focused test against the real scripts with mocked Discord responses and messages; these are stubs, so this is not live. A disposable Discord bot credential and channel are unavailable. Provide…
  • tests/fm-discord-decision-push.test.sh (direct invocation; blocked by script permissions)
  • bash tests/fm-discord-decision-push.test.sh
  • Saved focused test transcript to ~/.no-mistakes/evidence/01M452CCRFRP2620AMA8F2NMNJ/discord-decision-push.log

🔧 No changes applied.
2 warnings still open:

  • ⚠️ Live Discord delivery and reply routing remain unverified. The API host is fixed, and no disposable Discord bot token or channel was provided; local tests use a mocked fetch response. Provide a disposable bot token and channel to validate delivery, retry, and inbound routing against Discord.
  • ⚠️ live validation verdict: inconclusive (1 of 3 scenarios were driven live against the product); untested: Receive a decision notification with contact reason, decision, choices, recommendation, and task ID, Retry a failed notification and route a reply to its keyed inbox context
  • Live validation: ⚠️ inconclusive - 1 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Receive a decision notification with contact reason, decision, choices, recommendation, and task ID ⏸️ untested no Ran the focused test, which uses mocked Discord fetch responses. Live delivery cannot be driven because the API host is fixed and no disposable Discord bot token or channel is available. Provide a dis…
Reject a recommendation outside the offered choices without creating pending state ✅ pass live bash tests/fm-discord-decision-push.test.sh
Retry a failed notification and route a reply to its keyed inbox context ⏸️ untested no Ran the focused test, which uses mocked Discord fetch responses. Live retry and reply routing require a Discord bot token, channel, and authority to post and reply there. Provide a disposable bot toke…
  • bash tests/fm-discord-decision-push.test.sh
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@Ivory2024
Ivory2024 merged commit 5eff68d into main Oct 5, 2026
19 checks passed
Ivory2024 added a commit that referenced this pull request Oct 7, 2026
* feat(discord): clarify decision requests

* no-mistakes(document): Document Discord decision notification details
Ivory2024 added a commit that referenced this pull request Oct 7, 2026
* feat(discord): clarify decision requests

* no-mistakes(document): Document Discord decision notification details
@Ivory2024
Ivory2024 deleted the codex/discord-approval-context-20261005 branch October 10, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant